package com.ruoyi.income.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.incomerecord.domain.HouseContarctIncomeRecord;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划详情对象 house_contarct_income
 * 
 * @author hct
 * @date 2022-02-16
 */
@Data
public class HouseContarctIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

  
    /** 应收 */
    @Excel(name = "应收")
    private BigDecimal fee;

  
    /** 合同id */
    @Excel(name = "合同id")
    private Long contarctId;

    /** 账单id */
    @Excel(name = "账单id")
    private Long billId;

    /** 已收费用 */
    @Excel(name = "已收费用")
    private BigDecimal ysfee;

    /** 收支 */
    @Excel(name = "收支")
    private Long flowtype;

    /** 费用类型 1代表固定收费 2代表变化收费 */
    @Excel(name = "费用类型 1代表固定收费 2代表变化收费")
    private Integer feetype;

    /** 固定收费 1代表租金 2代表管理费，变化收费对应费用表信息 */
    @Excel(name = "固定收费 1代表租金 2代表管理费，变化收费对应费用表信息")
    private Long feetypeid;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 付款计划时间 */
    @Excel(name = "付款计划时间")
    private String contarctPlandate;

    private List<HouseContarctIncomeRecord> houseContarctIncomeRecords;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("fee", getFee())
            .append("updateTime", getUpdateTime())
            .append("contarctId", getContarctId())
            .append("createBy", getCreateBy())
            .append("billId", getBillId())
            .append("updateBy", getUpdateBy())
            .append("ysfee", getYsfee())
            .append("flowtype", getFlowtype())
            .append("feetype", getFeetype())
            .append("feetypeid", getFeetypeid())
            .toString();
    }
}
